package cn.dankal.flyaudio.adapter;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewAdapter;
import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewHolder;
import cn.dankal.basiclib.pojo.ChildrenBean;
import cn.dankal.basiclib.util.image.PicUtils;
import cn.dankal.flyaudio.R;

/**
 * <pre>
 *     e-mail : junfeng.nie@duntech.com.cn
 *     time   : 28/7/2020
 *     desc   :
 *     version: cn.dankal.flyaudio.adapter
 *     Copyright: Copyright（c）2018
 *     Company:
 * </pre>
 *
 * @author niejunfeng
 */
public class ItemCommentsDetailAdapter extends BaseRecyclerViewAdapter<ChildrenBean> {
    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_item_item_evaluate;
    }

    @Override
    protected BaseRecyclerViewHolder getViewHolder(ViewGroup parent, View rootView, int viewType) {
        return new ItemCommentsDetailAdapter.ViewHolder(rootView);
    }

    class ViewHolder extends BaseRecyclerViewHolder<ChildrenBean> {

        public ViewHolder(View itemView) {
            super(itemView);
        }

        @Override
        public void onBindData(ChildrenBean data, int position) {
            setText(R.id.item_tv_name, data.getCommentUser().getUsername());
            setText(R.id.item_tv_content, "："+data.getContent());

        }
    }
}

